package com.hzvdvmc.autosale.constant;

import java.util.Calendar;

/**
 * Created by william on 2018/1/15.
 * 时间常量
 */

public class TimeConstant {
    public static final long second = 1000;
    public static final long minute = second * 60;
    public static final long hour = minute * 60;
    //多久无操作，显示待机页面
    public static final long SHOW_STANDBYVIEW = 15 * minute;
    //保活间隔
    public static final long LIVE_DELAY = 30 * second;
    //多久无操作，弹框自动显示
    public static final long DIALOG_AUTO_DISMISS = minute;

    public static final long RESTART = 4 * second;

    //串口超时
    public static final long SERIAL_TIMEOUT = 5000;

    //串口每次响应的间隔，与SERIAL_TIMEOUT配合使用，
    // 在间隔内无响应，重发请求，直到SERIAL_TIMEOUT还是无响应，视为超时
    public static final long SERIAL_TIMEOUT_INTERVAL = 1000;

    //串口心跳
    public static final long SERIAL_HEART = 5 * second;
    //支付弹窗 超时
    public static final long TIME_OUT_PAY_DIALOG = 100 * second;
    //查询出货，出货中超时
    public static final long OUTRESULT_WAIT = 20 * second;
    //查询出货间隔
    public static final long OUTRESULT_WAIT_INTERVAL = 1000;
    //出货结果收到，窗体消失
    public static final long OUTRESULT_DISMISS = 4 * second;

    public static final String TIME_OUT_PAY = "100";
    public static final String TIME_OUT_ADVER = "4";
    public static final String TIME_OUT_WAIT = "15";


}
